package com.swfgui.controls
{
	import com.swfgui.blit.BlitClip;
	import com.swfgui.loader.ILoadingBar;
	
	import flash.display.DisplayObject;
	
	public class LoadingBar extends ProgressBar implements ILoadingBar
	{
		public function LoadingBar(viewSource:Object=null)
		{
			super(viewSource);
		}
		
		override public function get className():String
		{
			return "LoadingBar";
		}
		
		public function update(curLoadName:String, 
						curBytesLoaded:int, 
						curBytesTotal:int,
						curLoadIndex:int, 
						total:int):void
		{
			this.label = "正在加载:" + curLoadName + "    " + curLoadIndex.toString() + "/" + total.toString();
			this.setProgress(curBytesLoaded, curBytesTotal);
		}
	}
}